#ifndef WORKQUEUE_H
#define WORKQUEUE_H

#include <my_header.h>

typedef struct node_s{
    int workfd;
    struct node_s *next;
}node_t;

typedef struct workqueue_s{
    int len;
    node_t *head;
    node_t *tail;
}workqueue_t;

// 出队入队，打印
int enQueue(workqueue_t *q, int sockfd);

int deQueue(workqueue_t *q);

int printQueue(const workqueue_t *q);

#endif
